#!/bin/sh

so=.so

if [ `uname -s` = Darwin ]; then
	so=.dylib
fi

dirs=`ls -l | grep '^d' | sed 's/.* //'`

for i in $dirs; do
	echo "chdir: $i"
	cd $i
	./configure && make $*
	cd ..
	ln -s $i/$i$so .
done
